/*
 * AISMessages
 * - a java-based library for decoding of AIS messages from digital VHF radio traffic related
 * to maritime navigation and safety in compliance with ITU 1371.
 *
 * (C) Copyright 2011- by S-Consult ApS, VAT no. DK31327490, Denmark.
 *
 * Released under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
 * For details of this license see the nearby LICENCE-full file, visit http://creativecommons.org/licenses/by-nc-sa/3.0/
 * or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.
 *
 * NOT FOR COMMERCIAL USE!
 * Contact Thomas Borg Salling <tbsalling@tbsalling.dk> to obtain a commercially licensed version of this software.
 *
 */

package com.xx.dk.tbsalling.aismessages.nmea.exceptions;

@SuppressWarnings("serial")
public class NMEAParseException extends RuntimeException {

	public NMEAParseException(String rawMessage, String errorDescription) {
		this.rawMessage = rawMessage;
		this.errorDescription = errorDescription;
	}

	@Override
	public String getMessage() {
		return this.errorDescription + ": " + rawMessage;
	}

	public final String getRawMessage() {
		return rawMessage;
	}

	public final String getErrorDescription() {
		return errorDescription;
	}

	final String rawMessage;
	final String errorDescription;

}
